package tjs.study.notes.dotest.jvm.classload.classLife;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created by Nicky.Tang on 2021/10/10 10:11 下午
 *
 * @since 02.12.10
 */
public class DoTestOfPreparation {
    public static final ExecutorService EXECUTOR_SERVICE = Executors.newFixedThreadPool(100);

    public static void main(String[] args) {
        for (int i = 0; i <10 ; i++) {
            int finalI = i;
            EXECUTOR_SERVICE.execute(() -> {
                String threadId = Thread.currentThread().getName();
                System.out.println(finalI + threadId + " a_not_final: " + Preparation.a_not_final);
//                System.out.println(finalI + threadId + " b_final: " + Preparation.b_final);
                System.out.println();
            });
        }
    }

}
